﻿using Nop.Web.Models.Home;
using System.Collections.Generic;

namespace Nop.Web.Models.XJ
{
	public class StockOutFilterModel
	{
		public StockOutFilterModel()
		{
			this.AvailableCategories = new List<SelectItemModel>();
		}
		/// <summary>
		/// 设备分类
		/// </summary>
		public IList<SelectItemModel> AvailableCategories { get; set; }
	}
	public class StockOutListModel
	{
	}
	public class StockOutModel
	{
		public StockOutModel()
		{
			this.Pictures = new List<string>();
			this.Detail = new List<StockOutDetailModel>();
			this.AvailablePlaces = new List<SelectItemModel>();
			this.AvailableCategories = new List<SelectItemModel>();
		}
		public int Id { get; set; }
		/// <summary>
		/// 报修单号
		/// </summary>
		public string WNo { get; set; }
		/// <summary>
		/// 领用单号
		/// </summary>
		public string SNo { get; set; }
		/// <summary>
		/// 巡检计划Id
		/// </summary>
		public int MaintenanceId { get; set; }
		/// <summary>
		/// 设施设备类别
		/// </summary>
		public int CategoryId { get; set; }
		public string CategoryName { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public int PlaceId { get; set; }
		public string PlaceName { get; set; }
		public int State { get; set; }
		public string StateName { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		/// <summary>
		/// 部门
		/// </summary>
		public int DepartmentId { get; set; }
		public string DepartmentName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public string CreatedOn { get; set; }
		/// <summary>
		/// 审核人
		/// </summary>
		public string Reviewer { get; set; }
		/// <summary>
		/// 审核时间
		/// </summary>
		public string ReviewOn { get; set; }
		/// <summary>
		/// 确认人
		/// </summary>
		public string Keeper { get; set; }
		/// <summary>
		/// 确认时间
		/// </summary>
		public string KeeperOn { get; set; }
		/// <summary>
		/// 是否需要审核
		/// </summary>
		public bool NeedAudit { get; set; }
		/// <summary>
		/// 是否可以审核
		/// </summary>
		public bool CanAudit { get; set; }
		/// <summary>
		/// 是否需要出库
		/// </summary>
		public bool NeedOut { get; set; }
		/// <summary>
		/// 是否出库审核
		/// </summary>
		public bool CanOut { get; set; }
		/// <summary>
		/// 图片
		/// </summary>
		public string SelectedPictureIds { get; set; }
		/// <summary>
		/// 图片
		/// </summary>
		public IList<string> Pictures { get; set; }

		/// <summary>
		/// 出库明细
		/// </summary>
		public IList<StockOutDetailModel> Detail { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public IList<SelectItemModel> AvailablePlaces { get; set; }
		/// <summary>
		/// 设备分类
		/// </summary>
		public IList<SelectItemModel> AvailableCategories { get; set; }
	}
	public class StockOutDetailModel : ListItemModel
	{
		public int EquipmentStockId { get; set; }
		/// <summary>
		/// 设施设备Id
		/// </summary>
		public int EquipmentId { get; set; }
		/// <summary>
		/// 库存数量
		/// </summary>
		public int Stock { get; set; }
		/// <summary>
		/// 数量
		/// </summary>
		public int Amount { get; set; }
	}
}